mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
//// [tests/cases/compiler/contextuallyTypingOrOperator2.ts] ////
|
|
|
|
//// [contextuallyTypingOrOperator2.ts]
|
|
var v: { a: (_: string) => number } = { a: s => s.length } || { a: s => 1 };
|
|
|
|
var v2 = (s: string) => s.length || function (s) { s.aaa };
|
|
|
|
//// [contextuallyTypingOrOperator2.js]
|
|
"use strict";
|
|
var v = { a: s => s.length } || { a: s => 1 };
|
|
var v2 = (s) => s.length || function (s) { s.aaa; };
|