Report invalid type in getFields.

This commit is contained in:
Juraj Kirchheim
2017-12-08 10:40:24 +01:00
committed by GitHub
parent 0d9fff7e01
commit 82d15d9ffc

View File

@@ -94,7 +94,7 @@ class Types {
fieldsCache.remove(id);//TODO: find a proper solution to avoid stale cache
ret;
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)