Skip to content

Commit

Permalink
Tests WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-y committed Aug 31, 2024
1 parent d670b36 commit 78750e5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Empty file.
21 changes: 21 additions & 0 deletions src/semantics/__tests__/fixtures/check-types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export const throwsWithMissingField = `
use std::all
obj Point extends Vec {
x: i32,
y: i32,
z: i32
}
pub fn main() -> i32
let vec = Point { x: 1, y: 2 }
vec.x
`;

export const throwsWithBadReturn = `
use std::all
pub fn main() -> i32
let fl = 1.23
fl
`;

0 comments on commit 78750e5

Please sign in to comment.