Added tests for return type checking
svn: r1400
This commit is contained in:
parent
6cd0f93eb4
commit
79af758ca0
|
@ -3,6 +3,18 @@
|
|||
|
||||
(prepare-for-tests "Full")
|
||||
|
||||
(execute-test
|
||||
"class C {
|
||||
void x() { return 1; }
|
||||
}"
|
||||
'full #t "Trying to return value from void method")
|
||||
|
||||
(interact-test
|
||||
'full
|
||||
(list "return 1 + true;")
|
||||
(list 'error)
|
||||
"Make sure returns are type-checked in interactions")
|
||||
|
||||
(execute-test
|
||||
"class A {
|
||||
void n() { }
|
||||
|
|
Loading…
Reference in New Issue
Block a user