fix crash with generic function and implicit cast

This commit is contained in:
Andrew Kelley
2016-04-14 10:39:03 -07:00
parent 83a59c4d07
commit fcedc35551
4 changed files with 22 additions and 5 deletions

View File

@@ -1667,7 +1667,7 @@ extern void (*fn_ptr)(void);
)SOURCE", 2,
"pub extern var fn_ptr: ?extern fn();",
R"SOURCE(pub inline fn foo() {
(??fn_ptr)()
(??fn_ptr)();
})SOURCE");