Пример #1
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    ModuleDescriptorImpl module = JetTestUtils.createEmptyModule();
    builtIns = module.getBuiltIns();
    typeResolver = InjectionKt.createContainerForTests(getProject(), module).getTypeResolver();
    x = createTypeVariable("X");
    y = createTypeVariable("Y");
    variables = Sets.newHashSet(x.getTypeConstructor(), y.getTypeConstructor());
  }
Пример #2
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    builtIns = KotlinBuiltIns.getInstance();

    ContainerForTests container =
        DiPackage.createContainerForTests(getProject(), JetTestUtils.createEmptyModule());
    typeResolver = container.getTypeResolver();
    expressionTypingServices = container.getExpressionTypingServices();

    scopeWithImports = getDeclarationsScope("compiler/testData/type-checker-test.kt");
  }