Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser: Disallow module ctor/dtor with private/protected visibility
- Loading branch information
Showing
6 changed files
with
51 additions
and
1 deletion.
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,11 @@ | ||
' TEST_MODE : COMPILE_ONLY_FAIL | ||
|
||
type UDT | ||
i as integer | ||
|
||
private: | ||
declare static sub ctor( ) | ||
end type | ||
|
||
sub UDT.ctor( ) constructor | ||
end sub |
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,11 @@ | ||
' TEST_MODE : COMPILE_ONLY_FAIL | ||
|
||
type UDT | ||
i as integer | ||
|
||
private: | ||
declare static sub dtor( ) | ||
end type | ||
|
||
sub UDT.dtor( ) destructor | ||
end sub |
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,11 @@ | ||
' TEST_MODE : COMPILE_ONLY_FAIL | ||
|
||
type UDT | ||
i as integer | ||
|
||
protected: | ||
declare static sub ctor( ) | ||
end type | ||
|
||
sub UDT.ctor( ) constructor | ||
end sub |
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,11 @@ | ||
' TEST_MODE : COMPILE_ONLY_FAIL | ||
|
||
type UDT | ||
i as integer | ||
|
||
protected: | ||
declare static sub dtor( ) | ||
end type | ||
|
||
sub UDT.dtor( ) destructor | ||
end sub |