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
Too hard for a sunday afternoon...pic.twitter.com/xMmC22qv9G
1 reply 0 retweets 3 likes
Replying to @dwardoric
I'm the best at spoiling weekends... ;)
5:44 AM - 3 Mar 2019
0 replies
0 retweets
1 like
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.