Explorar o código

check `@:notNull` even on non-core-type abstracts (see #3894)

Simon Krajewski %!s(int64=10) %!d(string=hai) anos
pai
achega
ae2c346b82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -615,7 +615,7 @@ let rec is_nullable = function
 	| TAbstract (a,_) when Meta.has Meta.CoreType a.a_meta ->
 		not (Meta.has Meta.NotNull a.a_meta)
 	| TAbstract (a,tl) ->
-		is_nullable (apply_params a.a_params tl a.a_this)
+		not (Meta.has Meta.NotNull a.a_meta) && is_nullable (apply_params a.a_params tl a.a_this)
 	| _ ->
 		true