Closed nadako closed 9 years ago
one more, why default
is different than null
in this context:
one more: why set
is highlighted here?
i have another one, notice the type of the second
another one:
and another one:
Thanks, I'll try to fix that.
Is this feature documented somewhere?
class
A<T:{}> {}
Sure, it's type constraints: http://haxe.org/manual/type-system-type-parameter-constraints.html
{} in this case is typedef
, right?
It's a structure, how is that related to typedef
? T:{}
simply means that it should be an object (because any object will unify with an empty structure).
Ok.
Fixed.
Shouldn't default
be highlighted here?
Fixed.
Javascript? How can you use js code in haxe without untyped keyword? Am I missing something?
Oops i mixed something up here.