Last active
October 12, 2018 01:23
-
-
Save danwbyrne/21b0f3c255600f70e8bb4fc567d8441a to your computer and use it in GitHub Desktop.
Collisions Test Results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Bar, bar } from './Bar'; | |
export function Foo(value: Bar): boolean { | |
if (value.fizz === bar.fizz) { | |
return true; | |
} | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Bar { | |
public constructor() { | |
// | |
} | |
public fizz(): string { | |
return 'fizz'; | |
} | |
} | |
export const Foo: Bar = new Bar(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Bar { | |
readonly fizz: string; | |
} | |
export const bar: Bar = { | |
fizz: 'fizz', | |
}; | |
export function Foo(value: Bar): boolean { | |
if (value.fizz === bar.fizz) { | |
return true; | |
} | |
return false; | |
} | |
class CollisionsBar { | |
public constructor() { | |
// | |
} | |
public fizz(): string { | |
return 'fizz'; | |
} | |
} | |
const CollisionsFoo: CollisionsBar = new CollisionsBar(); | |
export const collisions = { | |
Bar: CollisionsBar, | |
Foo: CollisionsFoo, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Bar, bar } from './Bar'; | |
export function Foo(value: Bar): boolean { | |
if (value.fizz === bar.fizz) { | |
return true; | |
} | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export * from './Bar'; | |
export * from './Foo'; | |
import * as collisions from './Collisions'; | |
export { collisions }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment