Change Go test case to compile with current compiler.
Recent changes caused this to give an error about an unused variable.
This commit is contained in:
parent
7c2ed7eae5
commit
96134c65a8
1 changed files with 2 additions and 2 deletions
|
|
@ -196,13 +196,13 @@ func main() {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
//Namespace
|
//Namespace
|
||||||
my := contract.NewMyClass(1)
|
contract.NewMyClass(1)
|
||||||
func() {
|
func() {
|
||||||
defer func() {
|
defer func() {
|
||||||
if recover() == nil {
|
if recover() == nil {
|
||||||
panic("Failed! constructor preassertion")
|
panic("Failed! constructor preassertion")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
my = contract.NewMyClass(0)
|
contract.NewMyClass(0)
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue