Blueprint can not compile when local variable is a struct with a set container

(Windows 10, 64 bit, UE4.15) Steps to reproduce:

  • Create empty blueprint project
  • Create a new Structure
  • Add a variable to structure, change it to byte, and make the variable a “set” container
  • Create a new actor blueprint
  • Create new function in blueprint
  • Add new local variable and set it to be of the new struct type
  • Compile blueprint

Compiler Results:

Error: It is not possible to express this type (Set Property) as a literal value for the property MySet on pin “None” ! If it is inside a struct, you can add a Make struct node to resolve this issue!

Attached example

Making it a normal variable and not local works without issue.

Hey ,

Thank you for the report. I was able to reproduce what you are seeing, so I’ve created JIRA UE-42617. Our developers will be investigating further. Follow that link to monitor the status of the report.

Cheers,

TJ