Skip to content

Commit

Permalink
Fix bugs in example
Browse files Browse the repository at this point in the history
  • Loading branch information
snaulX committed Sep 22, 2019
1 parent 71c763e commit 416f311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/test.bld
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stack {
return @this.@age ;
],
name = string PUBLIC set (name: string) [
set : @this.&name , @name ;
set : &@this?@name , @name ;
System.print : <Your new name is :string>, @this.@name ;
]
PUBLIC get [
Expand Down Expand Up @@ -61,7 +61,7 @@ stack {
};
var {
sum = double PRIVATE set (_sum: double) [
set : &sum , @_sum ;
set : &@sum , @_sum ;
]
PRIVATE get [
return @sum ;
Expand Down
2 changes: 1 addition & 1 deletion wolvm/Value.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public static Value GetSmallValue(string val, Value parent = null)
}
else
{
VirtualMachine.ThrowVMException("Value cannot find", VirtualMachine.position - val.Length, ExceptionType.BLDSyntaxException);
VirtualMachine.ThrowVMException($"Value {val} cannot find", VirtualMachine.position - val.Length, ExceptionType.BLDSyntaxException);
return null;
}
}
Expand Down

0 comments on commit 416f311

Please sign in to comment.