Permalink
Browse files

Allow ClassTypes to be standalone usable values

  • Loading branch information...
LadyCailin committed Nov 17, 2018
1 parent fbc415c commit b76d94c909295aa2f9b97771e5828f4561dd17e6
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/laytonsmith/core/functions/Compiler.java
@@ -458,7 +458,9 @@ public ParseTree optimizeSpecial(List<ParseTree> list, boolean returnSConcat) th
for(int k = 0; k < list.size(); k++) {
if(list.get(k).getData() instanceof CClassType) {
if(k == list.size() - 1) {
throw new ConfigCompileException("Unexpected ClassType", list.get(k).getTarget());
// This is not a typed assignment
break;
//throw new ConfigCompileException("Unexpected ClassType", list.get(k).getTarget());
}
if(list.get(k + 1).getData() instanceof CFunction) {
switch(list.get(k + 1).getData().val()) {

0 comments on commit b76d94c

Please sign in to comment.