@@ -281,15 +281,15 @@ final class JSDefinitions()(using Context) {
281
281
@ threadUnsafe lazy val EnumerationClass = requiredClass(" scala.Enumeration" )
282
282
@ threadUnsafe lazy val Enumeration_Value_NoArg = EnumerationClass .requiredValue(nmeValue)
283
283
@ threadUnsafe lazy val Enumeration_Value_IntArg = EnumerationClass .requiredMethod(nmeValue, List (defn.IntType ))
284
- @ threadUnsafe lazy val Enumeration_Value_StringArg = EnumerationClass .requiredMethod(nmeValue, List (defn.StringType ))
285
- @ threadUnsafe lazy val Enumeration_Value_IntStringArg = EnumerationClass .requiredMethod(nmeValue, List (defn.IntType , defn.StringType ))
284
+ @ threadUnsafe lazy val Enumeration_Value_StringArg = EnumerationClass .requiredMethod(nmeValue, List (OrNull ( defn.StringType ) ))
285
+ @ threadUnsafe lazy val Enumeration_Value_IntStringArg = EnumerationClass .requiredMethod(nmeValue, List (defn.IntType , OrNull ( defn.StringType ) ))
286
286
@ threadUnsafe lazy val Enumeration_nextName = EnumerationClass .requiredMethod(termName(" nextName" ))
287
287
288
288
@ threadUnsafe lazy val EnumerationValClass = EnumerationClass .requiredClass(" Val" )
289
289
@ threadUnsafe lazy val Enumeration_Val_NoArg = EnumerationValClass .requiredMethod(nme.CONSTRUCTOR , Nil )
290
290
@ threadUnsafe lazy val Enumeration_Val_IntArg = EnumerationValClass .requiredMethod(nme.CONSTRUCTOR , List (defn.IntType ))
291
- @ threadUnsafe lazy val Enumeration_Val_StringArg = EnumerationValClass .requiredMethod(nme.CONSTRUCTOR , List (defn.StringType ))
292
- @ threadUnsafe lazy val Enumeration_Val_IntStringArg = EnumerationValClass .requiredMethod(nme.CONSTRUCTOR , List (defn.IntType , defn.StringType ))
291
+ @ threadUnsafe lazy val Enumeration_Val_StringArg = EnumerationValClass .requiredMethod(nme.CONSTRUCTOR , List (OrNull ( defn.StringType ) ))
292
+ @ threadUnsafe lazy val Enumeration_Val_IntStringArg = EnumerationValClass .requiredMethod(nme.CONSTRUCTOR , List (defn.IntType , OrNull ( defn.StringType ) ))
293
293
294
294
def isValueMethod (sym : Symbol )(using Context ): Boolean =
295
295
sym.name == nmeValue && sym.owner == EnumerationClass
0 commit comments