Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hl] Cannot use implements Dynamic #7078

Closed
jgranick opened this issue May 24, 2018 · 1 comment
Closed

[hl] Cannot use implements Dynamic #7078

jgranick opened this issue May 24, 2018 · 1 comment

Comments

@jgranick
Copy link

It does not appear to be possible to use implements Dynamic on the HL target:

package;

class Bug {
	
	static function main () {
		
		var data = new ShaderData ();
		Reflect.setField (data, "newField", 100);
		
	}
	
}

class ShaderData implements Dynamic {
	
	public function new () {}
	
}

Tested using Haxe 4 preview 3

Uncaught exception: ShaderData does not have field newField
Called from $Reflect.setField(C:\HaxeToolkit\haxe\std/hl/_std/Reflect.hx:40)
Called from $Bug.main(Bug.hx:8)
Called from fun$322(?:1)
jgranick added a commit to openfl/openfl that referenced this issue May 24, 2018
@Simn
Copy link
Member

Simn commented May 24, 2018

#6191

@Simn Simn closed this as completed May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants