Updated container

This commit is contained in:
thomashii@dukefirehawk.com 2022-12-29 00:25:55 +08:00
parent 14a7b82616
commit 7809c72f03
2 changed files with 7 additions and 7 deletions

View file

@ -8,9 +8,11 @@ const Reflectable contained = ContainedReflectable();
class ContainedReflectable extends Reflectable { class ContainedReflectable extends Reflectable {
const ContainedReflectable() const ContainedReflectable()
: super( : super(
topLevelInvokeCapability,
typeAnnotationQuantifyCapability, typeAnnotationQuantifyCapability,
superclassQuantifyCapability, superclassQuantifyCapability,
instanceInvokeCapability, instanceInvokeCapability,
libraryCapability,
invokingCapability, invokingCapability,
newInstanceCapability, newInstanceCapability,
reflectedTypeCapability, reflectedTypeCapability,

View file

@ -110,12 +110,10 @@ void testReflector(Reflector reflector) {
expect(kantoPokemonType.isAssignableTo(pokemonType), true); expect(kantoPokemonType.isAssignableTo(pokemonType), true);
var a = container.reflector.reflectType(String);
expect( expect(
kantoPokemonType () => kantoPokemonType
.isAssignableTo(container.reflector.reflectType(String)), .isAssignableTo(container.reflector.reflectType(String)),
false); throwsUnsupportedError);
}); });
} }