Skip to content

Instantly share code, notes, and snippets.

@fredreichbier
Created July 31, 2010 01:05
Show Gist options
  • Select an option

  • Save fredreichbier/501581 to your computer and use it in GitHub Desktop.

Select an option

Save fredreichbier/501581 to your computer and use it in GitHub Desktop.
rock_tmp/./vfdp.c: In function 'main':
rock_tmp/./vfdp.c:61:27: warning: unused variable 'a'
rock_tmp/./vfdp.c:63:56: error: 'a' undeclared (first use in this function)
rock_tmp/./vfdp.c:63:56: note: each undeclared identifier is reported only once for each function it appears in
C compiler failed, aborting compilation process
[FAIL]
lang_Numbers__Int main() {
GC_INIT();
vfdp_load();
{
vfdp__Fun __hi_mum1 = ((vfdp__Fun) (1));
lang_Numbers__Int a = vfdp__Fun_getMoreFun(&(__hi_mum1));
}
lang_Numbers__LLong_toString((lang_Numbers__LLong) a);
return 0;
}
Fun: cover from Int {
getMoreFun: func@ -> Int {
this + 2
}
}
main: func {
a := 1 as Fun getMoreFun()
a toString()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment