Quick actions

cmd+k|ctrl+k

Navigation

Languages

Who needs universal quantification, anyway?

Snippet info

Language

Scala

Visibility

public

Author

rightfold

Created

2016-08-27T10:43:20Z

Updated

2016-08-27T10:43:20Z

object Main extends App {
    def id(t: {type T})(x: t.T): t.T = x

    println(id(new {type T = String})("Hello World!"))
}
INFO