98 lines
1.4 KiB
Plaintext
98 lines
1.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`keywords.js 1`] = `
|
|
// All of these should be an error
|
|
|
|
module Y3 {
|
|
public module Module {
|
|
class A { s: string }
|
|
}
|
|
|
|
// Apparently this parses :P
|
|
export private public protected static readonly abstract async enum X { }
|
|
|
|
interface x {
|
|
export private static readonly [x: any]: any;
|
|
}
|
|
}
|
|
|
|
module Y4 {
|
|
public enum Color { Blue, Red }
|
|
}
|
|
|
|
module YY3 {
|
|
private module Module {
|
|
class A { s: string }
|
|
}
|
|
}
|
|
|
|
module YY4 {
|
|
private enum Color { Blue, Red }
|
|
}
|
|
|
|
module YYY3 {
|
|
static module Module {
|
|
class A { s: string }
|
|
}
|
|
}
|
|
|
|
module YYY4 {
|
|
static enum Color { Blue, Red }
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// All of these should be an error
|
|
|
|
namespace Y3 {
|
|
public namespace Module {
|
|
class A {
|
|
s: string;
|
|
}
|
|
}
|
|
|
|
// Apparently this parses :P
|
|
export private public protected static readonly abstract async enum X {}
|
|
|
|
interface x {
|
|
export private static readonly [x: any]: any;
|
|
}
|
|
}
|
|
|
|
namespace Y4 {
|
|
public enum Color {
|
|
Blue,
|
|
Red
|
|
}
|
|
}
|
|
|
|
namespace YY3 {
|
|
private namespace Module {
|
|
class A {
|
|
s: string;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace YY4 {
|
|
private enum Color {
|
|
Blue,
|
|
Red
|
|
}
|
|
}
|
|
|
|
namespace YYY3 {
|
|
static namespace Module {
|
|
class A {
|
|
s: string;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace YYY4 {
|
|
static enum Color {
|
|
Blue,
|
|
Red
|
|
}
|
|
}
|
|
|
|
`;
|