class Flat[T] { type R = T } implicit def flat[T]: Flat[T] = null def f[A, B]: A with B = null.asInstanceOf[A with B] def g[A, B](implicit flat: Flat[A with B]): flat.R = f[A, B] f[Int with Long, Int] // infers Int with Long with Int g[Int with Long,Int] // infers Int with Long
-
-
-
-
Replying to @propensive
Of course) there is no way you actually use that stuff right?)
2 replies 0 retweets 0 likes -
-
Replying to @dwardoric @BesseIFunction
But... but... that's almost the only thing you can safely call on null!
1 reply 0 retweets 0 likes -
Replying to @propensive @dwardoric
It looks like I managed to hurt your feelings Jon, didn't I? I apologise )
1 reply 0 retweets 1 like
Replying to @BesseIFunction @dwardoric
No, of course not. You're completely right to admonish me for casts and nulls!
12:09 AM - 4 Mar 2019
0 replies
0 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.