Fix issue with build field retrieval.

This commit is contained in:
Juraj Kirchheim
2020-08-20 13:08:28 +02:00
parent 8b9dbba624
commit acaedc170a

View File

@@ -23,9 +23,9 @@ class ClassBuilder {
target = Context.getLocalClass().get(); target = Context.getLocalClass().get();
if (fields == null) if (fields == null)
switch MacroApi.getBuildFields() { fields = switch MacroApi.getBuildFields() {
case None: target.pos.error('Impossible to get builds fields now. Possible cause: https://github.com/HaxeFoundation/haxe/issues/9853'); case None: target.pos.error('Impossible to get builds fields now. Possible cause: https://github.com/HaxeFoundation/haxe/issues/9853');
case Some(_): case Some(v): v;
} }
this.initializeFrom = fields; this.initializeFrom = fields;