hoang
12/02/2021, 8:46 AMhoang
12/02/2021, 8:46 AMhoang
12/02/2021, 8:47 AMJoffrey
12/02/2021, 8:48 AMT
is inferred by the compiler, and in your case inferring Any
makes it work, so the compiler chooses thisJoffrey
12/02/2021, 8:48 AMJoffrey
12/02/2021, 8:50 AMT
explicitly, as in:
a.isOneOf<String>(1.2, 3)
And this will fail as you expecthoang
12/02/2021, 9:01 AM