diff --git a/gnovm/tests/challenges/not_a_type.gno b/gnovm/tests/challenges/not_a_type.gno new file mode 100644 index 00000000000..ed8adb9983a --- /dev/null +++ b/gnovm/tests/challenges/not_a_type.gno @@ -0,0 +1,10 @@ +package main + +var T struct{} + +func (t T) do() {} + +func main() {} + +// Error: +// T (variable of type struct{}) is not a type