11 lines
266 B
C#
11 lines
266 B
C#
|
namespace meowlang.typechecker;
|
||
|
|
||
|
public class DuplicateVariableNameException : Exception
|
||
|
{
|
||
|
public string Name { get; }
|
||
|
|
||
|
public DuplicateVariableNameException(string name) : base($"duplicate variable name `{name}` in scope")
|
||
|
{
|
||
|
Name = name;
|
||
|
}
|
||
|
}
|