Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*
This commit is contained in:
@@ -21,12 +21,12 @@ obj ToClose {
|
||||
}
|
||||
|
||||
obj One (Object) {
|
||||
fun construct(): One* {
|
||||
fun construct(): *One {
|
||||
return this
|
||||
}
|
||||
fun destruct() {
|
||||
var a:One
|
||||
mem::safe_recursive_delete(&a, fun(it: One*): set::set<One*> { return set::set(it); } )
|
||||
mem::safe_recursive_delete(&a, fun(it: *One): set::set<*One> { return set::set(it); } )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user