Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*

This commit is contained in:
Nathan Braswell
2015-07-04 17:02:51 -04:00
parent d2b12fea35
commit 2c29846570
41 changed files with 149 additions and 166 deletions

View File

@@ -18,15 +18,15 @@ fun printInt(it:int):void {
}
fun ptrFn<T>(ptr: T*):void {
fun ptrFn<T>(ptr: *T):void {
println(*ptr)
}
fun traitAware<T>(it:T*):void {
fun traitAware<T>(it:*T):void {
println("Does not have Traits")
}
fun traitAware<T(Traits)>(it:T*):void {
fun traitAware<T(Traits)>(it:*T):void {
println("Does have Traits")
}