diff --git a/BeefLibs/corlib/src/HashCode.bf b/BeefLibs/corlib/src/HashCode.bf index 666a61ff..5637df82 100644 --- a/BeefLibs/corlib/src/HashCode.bf +++ b/BeefLibs/corlib/src/HashCode.bf @@ -17,7 +17,7 @@ static class HashCode if (t.IsTypedPrimitive == true) { - code.AppendF("\treturn ti.UnderlyingType;"); + code.AppendF($"\treturn SelfOuter.Get(({t.UnderlyingType})value);"); } else if (t.IsEnum) {