File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3581,11 +3581,14 @@ static public Expr parse(C context, ISeq form) {
3581
3581
Expr fexpr = analyze (context , form .first ());
3582
3582
if (fexpr instanceof VarExpr && ((VarExpr )fexpr ).var .equals (INSTANCE ))
3583
3583
{
3584
- if (RT .second (form ) instanceof Symbol )
3584
+ Expr sexpr = analyze (C .EXPRESSION , RT .second (form ));
3585
+ if (sexpr instanceof ConstantExpr )
3585
3586
{
3586
- Class c = HostExpr .maybeClass (RT .second (form ),false );
3587
- if (c != null )
3588
- return new InstanceOfExpr (c , analyze (context , RT .third (form )));
3587
+ Object val = ((ConstantExpr ) sexpr ).val ();
3588
+ if (val instanceof Class )
3589
+ {
3590
+ return new InstanceOfExpr ((Class ) val , analyze (context , RT .third (form )));
3591
+ }
3589
3592
}
3590
3593
}
3591
3594
You can’t perform that action at this time.
0 commit comments