-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5048e91
commit 72ae089
Showing
12 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
test/Harper/Tests/Bad/DataMethodTypeHintWithoutDefinition.har
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
value HelloWorld = { | ||
data = { | ||
name :: String; | ||
} | ||
sayHello :: String; | ||
}; |
7 changes: 7 additions & 0 deletions
7
test/Harper/Tests/Bad/DataMethodTypeHintWithoutDefinition.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Error: type hint for function `sayHello` has no associated definition. | ||
During evaluation of: | ||
sayHello :: String | ||
|
||
Located at line 5 column 5 | ||
|
||
Execution terminated with an error: type error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
main :: Integer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Error: type hint for function `main` has no associated definition. | ||
During evaluation of: | ||
main :: Integer | ||
|
||
Located at line 1 column 1 | ||
|
||
Execution terminated with an error: type error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
value HelloWorld = { | ||
sayHello :: String; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Error: type hint for function `sayHello` has no associated definition. | ||
During evaluation of: | ||
sayHello :: String | ||
|
||
Located at line 2 column 5 | ||
|
||
Execution terminated with an error: type error. |
13 changes: 13 additions & 0 deletions
13
test/Harper/Tests/Bad/VariantDataMethodTypeHintWithoutDefinition.har
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
value HelloWorld = { | ||
variant Hi = { | ||
sayHello :: String; | ||
sayHello = "Hi, World!"; | ||
}; | ||
|
||
variant Hello = { | ||
data = { | ||
name :: String; | ||
} | ||
sayHello :: String; | ||
}; | ||
}; |
7 changes: 7 additions & 0 deletions
7
test/Harper/Tests/Bad/VariantDataMethodTypeHintWithoutDefinition.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Error: type hint for function `sayHello` has no associated definition. | ||
During evaluation of: | ||
sayHello :: String | ||
|
||
Located at line 11 column 7 | ||
|
||
Execution terminated with an error: type error. |
10 changes: 10 additions & 0 deletions
10
test/Harper/Tests/Bad/VariantMethodTypeHintWithoutDefinition.har
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
value HelloWorld = { | ||
variant Hi = { | ||
sayHello :: String; | ||
sayHello = "Hi, World!"; | ||
}; | ||
|
||
variant Hello = { | ||
sayHello :: String; | ||
}; | ||
}; |
7 changes: 7 additions & 0 deletions
7
test/Harper/Tests/Bad/VariantMethodTypeHintWithoutDefinition.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Error: type hint for function `sayHello` has no associated definition. | ||
During evaluation of: | ||
sayHello :: String | ||
|
||
Located at line 8 column 7 | ||
|
||
Execution terminated with an error: type error. |