We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ff04f commit 1751c99Copy full SHA for 1751c99
1 file changed
Clojure/Clojure/CljCompiler/Ast/LocalBinding.cs
@@ -59,6 +59,9 @@ public sealed class LocalBinding
59
60
public LocalBinding(int index, Symbol sym, Symbol tag, Expr init, Type declaredType, bool isThis, bool isArg, bool isByRef)
61
{
62
+ if (Compiler.MaybePrimitiveType(init) != null && tag != null)
63
+ throw new InvalidOperationException("Can't type hint a local with a primitive initializer");
64
+
65
Index = index;
66
_sym = sym;
67
Tag = tag;
0 commit comments