hoang
12/02/2021, 8:46 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 thisT
explicitly, as in:
a.isOneOf<String>(1.2, 3)
And this will fail as you expecthoang
12/02/2021, 9:01 AM