diff --git a/test/fixtures/typescript/analysis/class1.ts b/test/fixtures/typescript/analysis/class1.ts index 521b04cb8..b43ed7cd0 100644 --- a/test/fixtures/typescript/analysis/class1.ts +++ b/test/fixtures/typescript/analysis/class1.ts @@ -1,4 +1,4 @@ -import { Greeter } from "./class2" +import { Adder } from "./class2" -const foo = new Greeter("world") -foo.greet() +var foo = new Adder(5) +foo.add() diff --git a/test/fixtures/typescript/analysis/class2.ts b/test/fixtures/typescript/analysis/class2.ts index e0b922729..8a6db70f3 100644 --- a/test/fixtures/typescript/analysis/class2.ts +++ b/test/fixtures/typescript/analysis/class2.ts @@ -1,11 +1,11 @@ -class Greeter { - greeting: string; - constructor(message: string) { - this.greeting = message; +class Adder { + summand: number; + constructor(summand: number) { + this.summand = summand; } - greet() { - return "Hello, " + this.greeting; + add() { + return 4 + this.summand; } } -export { Greeter } +export { Adder }