Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added testcase for fully qualified import.
- Loading branch information
1 parent
8e05bdf
commit e8ef378
Showing
4 changed files
with
27 additions
and
10 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
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,26 @@ | ||
// name: ImportFullyQualified | ||
// keywords: import | ||
// status: incorrect | ||
// | ||
// Checks that fully qualified imports are rejected. | ||
// | ||
|
||
package P | ||
end P; | ||
|
||
model ImportFullyQualified | ||
import .P; | ||
end ImportFullyQualified; | ||
|
||
// Result: | ||
// Error processing file: ImportFullyQualified.mo | ||
// Failed to parse file: ImportFullyQualified.mo! | ||
// | ||
// [openmodelica/parser/ImportFullyQualified.mo:12:10-12:10:writable] Error: No viable alternative near token: . | ||
// | ||
// # Error encountered! Exiting... | ||
// # Please check the error message and the flags. | ||
// Failed to parse file: ImportFullyQualified.mo! | ||
// | ||
// Execution failed! | ||
// endResult |
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