mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
420 B
TypeScript
13 lines
420 B
TypeScript
//// [tests/cases/conformance/types/literal/stringLiteralsAssertionsInEqualityComparisons01.ts] ////
|
|
|
|
//// [stringLiteralsAssertionsInEqualityComparisons01.ts]
|
|
var a = "foo" === "bar" as string;
|
|
var b = "foo" !== ("bar" as string);
|
|
var c = "foo" == (<any>"bar");
|
|
|
|
//// [stringLiteralsAssertionsInEqualityComparisons01.js]
|
|
"use strict";
|
|
var a = "foo" === "bar";
|
|
var b = "foo" !== "bar";
|
|
var c = "foo" == "bar";
|