Browse Source

revert nullable changes

Simon Krajewski 5 months ago
parent
commit
fea6349fd6
2 changed files with 0 additions and 9 deletions
  1. 0 7
      src-json/meta.json
  2. 0 2
      src/typing/nullSafety.ml

+ 0 - 7
src-json/meta.json

@@ -744,13 +744,6 @@
 		"platforms": ["flash"],
 		"internal": true
 	},
-	{
-		"name": "Nullable",
-		"metadata": ":nullable",
-		"doc": "Explicitly admits `null` as valid value for an enum, which affects null-safety",
-		"targets": ["TEnum"],
-		"links": ["https://haxe.org/manual/types-nullability.html"]
-	},
 	{
 		"name": "NullSafety",
 		"metadata": ":nullSafety",

+ 0 - 2
src/typing/nullSafety.ml

@@ -85,8 +85,6 @@ let rec is_nullable_type ?(dynamic_is_nullable=false) = function
 		is_nullable_type (apply_typedef t tl)
 	| (TDynamic _) as t ->
 		dynamic_is_nullable && t == t_dynamic
-	| TEnum(en,_) ->
-		Meta.has Meta.Nullable en.e_meta
 	| _ ->
 		false
 (*