Fudge
09/24/2021, 7:02 PMnapperley
09/24/2021, 10:32 PMDominaezzz
09/25/2021, 10:53 AMFudge
09/26/2021, 11:23 AMT & any. However, it's supported in the parser and in the compiler internally so it should be fairly simple to just lift that restriction...napperley
09/26/2021, 9:11 PMFudge
09/27/2021, 9:11 AMString | Int is all Strings and ints, but String & Int is Nothing because nothing is both a String and an Int.
Comparable | Closeable is any object that is comparable or closeable, Comparable & Closeable is any object that is comparable AND closeable.
T | any : if T is nullable, then any non-nullable object, or a nullable instance of T. If T is not nullable, then it's equivalent to any.
T & any : if T is nullable, then any non-nullable instance of T. If T is not nullable, then it's equivalent to T.