Port another resource test to use classes
This commit is contained in:
parent
facb5c08c6
commit
11b4a92fc8
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
// error-pattern:mismatched types: expected `()` but found `bool`
|
||||
|
||||
resource r(i: int) {
|
||||
true
|
||||
class r {
|
||||
new() {}
|
||||
drop { true }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue