A little more work on function inference, fixed both Cephalapod and Kalypso's c generators to not accidentally emit this-> for a method param if the object has a var of the same name, which allows us to disambiguate with object_name::member = param_with_same_name, behavior I had not thought of but would have worked out of the box if not for this accidental bug
This commit is contained in:
@@ -52,13 +52,14 @@ fun some_other_function(in: bool): float {
|
||||
}
|
||||
*/
|
||||
fun main(): int {
|
||||
var a = id<int>(7)
|
||||
println(a)
|
||||
var b = id<int>(8)
|
||||
println(id("Wooo function template inference"))
|
||||
/*var a = id<int>(7)*/
|
||||
/*println(a)*/
|
||||
/*var b = id<int>(8)*/
|
||||
/*var b = id<*char>("Double down time")*/
|
||||
/*println(b)*/
|
||||
println(id<char>("Double down time"))
|
||||
println(other_id<*char>("Triple down time"))
|
||||
/*println(id<char>("Double down time"))*/
|
||||
/*println(other_id<*char>("Triple down time"))*/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user