Last active
February 8, 2017 14:55
-
-
Save TonyLo1/f0335caa8a9c850b66215c29cec1512a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A[T: Comparable[T] #read] | |
var t: T = T() // Compiler complains with: couldn't find 'create' in 'Comparable' | |
var a: T | |
new create() => | |
a = t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment