meowlang/typechecker/exceptions/DuplicateVariableNameException.cs
Gwendolyn d6bdd08002 loooots of stuff
the typechecker project can collect all the top level types from a file, which is pretty cool I think
(except for pointers, those aren't implemented yet...)
2022-02-13 02:41:16 +01:00

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;
}
}