|
@@ -538,6 +538,7 @@ and load_complex_type ctx p t =
|
|
| None -> error ("Explicit type required for field " ^ n) p
|
|
| None -> error ("Explicit type required for field " ^ n) p
|
|
| Some t -> load_complex_type ctx p t
|
|
| Some t -> load_complex_type ctx p t
|
|
in
|
|
in
|
|
|
|
+ if n = "new" then ctx.com.warning "Structures with new are deprecated, use haxe.Constraints.Constructible instead" p;
|
|
let no_expr = function
|
|
let no_expr = function
|
|
| None -> ()
|
|
| None -> ()
|
|
| Some (_,p) -> error "Expression not allowed here" p
|
|
| Some (_,p) -> error "Expression not allowed here" p
|