Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword1.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//COMPILE ERROR OD2000
// NOBYOND

#pragma SoftReservedKeyword error

var/src = 321

/proc/RunTest()
Expand Down
3 changes: 3 additions & 0 deletions Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword2.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//COMPILE ERROR OD2000
// NOBYOND

#pragma SoftReservedKeyword error

/proc/test(args)
return 1

Expand Down
3 changes: 3 additions & 0 deletions Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword3.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//COMPILE ERROR OD2000
// NOBYOND

#pragma SoftReservedKeyword error

/proc/RunTest()
var/usr = 123
world.log << "fail"
Expand Down
2 changes: 1 addition & 1 deletion DMCompiler/Compiler/CompilerError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public struct CompilerEmission {
{WarningCode.ErrorRecoveryActivated, ErrorLevel.Error},

//2000-2999
{WarningCode.SoftReservedKeyword, ErrorLevel.Error},
{WarningCode.SoftReservedKeyword, ErrorLevel.Warning},
{WarningCode.ScopeOperandNamedType, ErrorLevel.Warning},
{WarningCode.DuplicateVariable, ErrorLevel.Warning},
{WarningCode.DuplicateProcDefinition, ErrorLevel.Error},
Expand Down
Loading