-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from yuezato/branch_for_issue126
Support the binary and bitstring types
- Loading branch information
Showing
5 changed files
with
33 additions
and
3 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
Binary file not shown.
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 @@ | ||
-module(binary_bitstring_error). | ||
-export([main/1]). | ||
|
||
main(X) -> | ||
_ = binary_to_integer(X), %% binary -> integer. | ||
_ = bit_size(X). %% bitstring -> integer >= 0. |
4 changes: 4 additions & 0 deletions
4
test/blackbox-test/test-cases/binary_bitstring_error.expected
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,4 @@ | ||
TODO:filename:5: Type error: type mismatch; | ||
found : <<_:0, _:_*1>> | ||
required: <<_:0, _:_*8>> | ||
there is no solution that satisfies subtype constraints |