liminal
11/15/2019, 3:13 AMinterface Foo<T : Any> and interface Foo<T>?Pablichjenkov
11/15/2019, 3:32 AMnon nullable subset of Any.
The second one accepts T to be a nullable type in a subset of Any?liminal
11/15/2019, 5:16 AMPablichjenkov
11/15/2019, 5:55 AMStephan Schroeder
11/15/2019, 11:03 AMFoo<T> is shorhand for Foo<T: Any?>, so T can be a nullable Type (but of course you could restrict that later when implementing Foo StrFoo: Foo<String> wouldn’t be nullable while NStrFoo: Foo<String?> would be)liminal
11/15/2019, 1:00 PM