Report invalid type in getFields.
This commit is contained in:
@@ -94,7 +94,7 @@ class Types {
|
|||||||
fieldsCache.remove(id);//TODO: find a proper solution to avoid stale cache
|
fieldsCache.remove(id);//TODO: find a proper solution to avoid stale cache
|
||||||
ret;
|
ret;
|
||||||
case TAnonymous(anon): Success(anon.get().fields);
|
case TAnonymous(anon): Success(anon.get().fields);
|
||||||
default: Context.currentPos().makeFailure('type has no fields');
|
default: Context.currentPos().makeFailure('type $t has no fields');
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function getStatics(t:Type)
|
static public function getStatics(t:Type)
|
||||||
|
|||||||
Reference in New Issue
Block a user