Skip to content

Instantly share code, notes, and snippets.

@kerneltoast
Last active December 16, 2020 20:42
Show Gist options
  • Save kerneltoast/74423d5a7a5f81f1dc2943ed4088b1af to your computer and use it in GitHub Desktop.
Save kerneltoast/74423d5a7a5f81f1dc2943ed4088b1af to your computer and use it in GitHub Desktop.
global a;
function f() {
a = "stringcheese";
}
function g() {
a = 32;
}
probe begin {
g();
f();
}
semantic error: type mismatch (long): identifier 'a' at test.stp:8:5
source: a = 32;
^
semantic error: type mismatch (long): identifier 'a' at :8:5
source: a = 32;
^
semantic error: type was first inferred here (string): identifier 'a' at :4:5
source: a = "blamefche";
^
Pass 2: analysis failed. [man error::pass2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment