Skip to content

Commit 7cadea7

Browse files
committed
Add more cases to CompileTest covering type checking of assignment
1 parent b54e6ab commit 7cadea7

File tree

88 files changed

+135
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+135
-0
lines changed

src/compiler-frontend/src/test/java/org/smoothbuild/compilerfrontend/acceptance/compile/typecheck/assigning/array/from_array/logs

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Int] array = [1, 2, 3];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Log{ERROR, '{t-project}/module.smooth:1: `array` body type `[String]` is not assignable to declared type `[Int]`.'}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Int] array = ["a", "b", "c"];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Log{ERROR, '{t-project}/module.smooth:1: `array` body type `Blob` is not assignable to declared type `[Int]`.'}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Int] array = 0xCAFEBABE;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Log{ERROR, '{t-project}/module.smooth:1: `array` body type `()->Int` is not assignable to declared type `[Int]`.'}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Int] array = () -> 123;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Log{ERROR, '{t-project}/module.smooth:1: `array` body type `Int` is not assignable to declared type `[Int]`.'}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Int] array = 123;

0 commit comments

Comments
 (0)