Description

Users are able to name function parameters (in BP and in code) "self" resulting in odd compile errors when in blueprints:

"This blueprint (self) is not a bool, therefore ' Self ' must have a connection."

Steps to Reproduce
  1. Open any project in editor.
  2. Open the level blueprint.
  3. Create a function.
  4. Add a parameter of any type and name it "self".
    • The above can be done in a native function and get this resolve as well. Sample project attached.

RESULT

User receives an odd compile error: "This blueprint (self) is not a bool, therefore ' Self ' must have a connection."

EXPECTED

Users should not be able to use

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-92738 in the post.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint Compiler
Affects Versions4.25
Target Fix4.26
Fix Commit13591370
Main Commit13686746
CreatedMay 4, 2020
ResolvedJun 1, 2020
UpdatedJun 16, 2020
View Jira Issue