/third_party/typescript/tests/baselines/reference/ |
D | thisTypeAccessibility.errors.txt | 1 …ccessibility.ts(26,10): error TS2341: Property 'p' is private and only accessible within class 'My… 2 …cessibility.ts(29,13): error TS2341: Property 'sp' is private and only accessible within class 'My… 3 …sibility.ts(30,13): error TS2445: Property 'spp' is protected and only accessible within class 'My… 4 …ccessibility.ts(35,10): error TS2341: Property 'p' is private and only accessible within class 'My… 5 …cessibility.ts(38,13): error TS2341: Property 'sp' is private and only accessible within class 'My… 6 …sibility.ts(39,13): error TS2445: Property 'spp' is protected and only accessible within class 'My… 7 …ccessibility.ts(44,10): error TS2341: Property 'p' is private and only accessible within class 'My… 8 …cessibility.ts(47,13): error TS2341: Property 'sp' is private and only accessible within class 'My… 9 …sibility.ts(48,13): error TS2445: Property 'spp' is protected and only accessible within class 'My… 10 …ccessibility.ts(55,10): error TS2341: Property 'p' is private and only accessible within class 'My… [all …]
|
D | privateProtectedMembersAreNotAccessibleDestructuring.errors.txt | 1 …ructuring.ts(12,13): error TS2341: Property 'priv' is private and only accessible within class 'K'. 2 …tructuring.ts(17,5): error TS2341: Property 'priv' is private and only accessible within class 'K'. 3 …ucturing.ts(18,5): error TS2445: Property 'prot' is protected and only accessible within class 'K'… 4 …g.ts(19,5): error TS2341: Property 'privateMethod' is private and only accessible within class 'K'. 5 …tructuring.ts(20,5): error TS2341: Property 'priv' is private and only accessible within class 'K'. 6 …g.ts(20,5): error TS2341: Property 'privateMethod' is private and only accessible within class 'K'. 7 …ucturing.ts(20,5): error TS2445: Property 'prot' is protected and only accessible within class 'K'… 8 …ructuring.ts(21,12): error TS2341: Property 'priv' is private and only accessible within class 'K'. 9 ….ts(21,12): error TS2341: Property 'privateMethod' is private and only accessible within class 'K'. 10 …cturing.ts(21,12): error TS2445: Property 'prot' is protected and only accessible within class 'K'… [all …]
|
D | classWithPrivateProperty.errors.txt | 1 …vateProperty.ts(15,20): error TS2341: Property 'x' is private and only accessible within class 'C'. 2 …vateProperty.ts(16,20): error TS2341: Property 'a' is private and only accessible within class 'C'. 3 …vateProperty.ts(17,20): error TS2341: Property 'b' is private and only accessible within class 'C'. 4 …vateProperty.ts(18,20): error TS2341: Property 'c' is private and only accessible within class 'C'. 5 …vateProperty.ts(19,20): error TS2341: Property 'd' is private and only accessible within class 'C'. 6 …vateProperty.ts(20,20): error TS2341: Property 'e' is private and only accessible within class 'C'. 7 …vateProperty.ts(21,20): error TS2341: Property 'f' is private and only accessible within class 'C'. 8 …vateProperty.ts(22,20): error TS2341: Property 'g' is private and only accessible within class 'C'. 28 !!! error TS2341: Property 'x' is private and only accessible within class 'C'. 31 !!! error TS2341: Property 'a' is private and only accessible within class 'C'. [all …]
|
D | jsdocAccessibilityTags.errors.txt | 3 …bilityTag.js(50,14): error TS2341: Property 'priv' is private and only accessible within class 'A'. 4 …ilityTag.js(55,14): error TS2341: Property 'priv2' is private and only accessible within class 'C'. 5 …ibilityTag.js(58,9): error TS2341: Property 'priv' is private and only accessible within class 'A'. 6 …lityTag.js(58,24): error TS2445: Property 'prot' is protected and only accessible within class 'A'… 7 …ibilityTag.js(59,9): error TS2341: Property 'priv' is private and only accessible within class 'A'. 8 …lityTag.js(59,24): error TS2445: Property 'prot' is protected and only accessible within class 'A'… 9 …bilityTag.js(60,9): error TS2341: Property 'priv2' is private and only accessible within class 'C'. 10 …ityTag.js(60,25): error TS2445: Property 'prot2' is protected and only accessible within class 'C'… 11 …bilityTag.js(61,9): error TS2341: Property 'priv2' is private and only accessible within class 'C'. 12 …ityTag.js(61,25): error TS2445: Property 'prot2' is protected and only accessible within class 'C'… [all …]
|
D | protectedClassPropertyAccessibleWithinNestedSubclass1.errors.txt | 1 …dSubclass1.ts(15,20): error TS2445: Property 'x' is protected and only accessible within class 'De… 2 …dSubclass1.ts(32,19): error TS2446: Property 'x' is protected and only accessible through an insta… 3 …dSubclass1.ts(34,20): error TS2446: Property 'x' is protected and only accessible through an insta… 4 …dSubclass1.ts(35,20): error TS2445: Property 'x' is protected and only accessible within class 'De… 5 …dSubclass1.ts(36,20): error TS2446: Property 'x' is protected and only accessible through an insta… 6 …dSubclass1.ts(52,19): error TS2446: Property 'x' is protected and only accessible through an insta… 7 …dSubclass1.ts(53,20): error TS2446: Property 'x' is protected and only accessible through an insta… 8 …dSubclass1.ts(55,20): error TS2445: Property 'x' is protected and only accessible within class 'De… 9 …dSubclass1.ts(73,19): error TS2446: Property 'x' is protected and only accessible through an insta… 10 …dSubclass1.ts(74,20): error TS2446: Property 'x' is protected and only accessible through an insta… [all …]
|
D | protectedClassPropertyAccessibleWithinSubclass2.errors.txt | 1 …nSubclass2.ts(13,12): error TS2445: Property 'x' is protected and only accessible within class 'De… 2 …nSubclass2.ts(26,11): error TS2446: Property 'x' is protected and only accessible through an insta… 3 …nSubclass2.ts(28,12): error TS2446: Property 'x' is protected and only accessible through an insta… 4 …nSubclass2.ts(29,12): error TS2445: Property 'x' is protected and only accessible within class 'De… 5 …nSubclass2.ts(30,12): error TS2446: Property 'x' is protected and only accessible through an insta… 6 …nSubclass2.ts(42,11): error TS2446: Property 'x' is protected and only accessible through an insta… 7 …nSubclass2.ts(43,12): error TS2446: Property 'x' is protected and only accessible through an insta… 8 …nSubclass2.ts(45,12): error TS2445: Property 'x' is protected and only accessible within class 'De… 9 …nSubclass2.ts(59,11): error TS2446: Property 'x' is protected and only accessible through an insta… 10 …nSubclass2.ts(60,12): error TS2446: Property 'x' is protected and only accessible through an insta… [all …]
|
D | classPropertyAsPrivate.errors.txt | 5 …ertyAsPrivate.ts(15,3): error TS2341: Property 'x' is private and only accessible within class 'C'. 6 …ertyAsPrivate.ts(16,3): error TS2341: Property 'y' is private and only accessible within class 'C'. 7 …ertyAsPrivate.ts(17,3): error TS2341: Property 'y' is private and only accessible within class 'C'. 8 …tyAsPrivate.ts(18,3): error TS2341: Property 'foo' is private and only accessible within class 'C'. 9 …ertyAsPrivate.ts(20,3): error TS2341: Property 'a' is private and only accessible within class 'C'. 10 …ertyAsPrivate.ts(21,3): error TS2341: Property 'b' is private and only accessible within class 'C'. 11 …ertyAsPrivate.ts(22,3): error TS2341: Property 'b' is private and only accessible within class 'C'. 12 …tyAsPrivate.ts(23,3): error TS2341: Property 'foo' is private and only accessible within class 'C'. 40 !!! error TS2341: Property 'x' is private and only accessible within class 'C'. 43 !!! error TS2341: Property 'y' is private and only accessible within class 'C'. [all …]
|
D | classPropertyAsProtected.errors.txt | 5 …AsProtected.ts(15,3): error TS2445: Property 'x' is protected and only accessible within class 'C'… 6 …AsProtected.ts(16,3): error TS2445: Property 'y' is protected and only accessible within class 'C'… 7 …AsProtected.ts(17,3): error TS2445: Property 'y' is protected and only accessible within class 'C'… 8 …Protected.ts(18,3): error TS2445: Property 'foo' is protected and only accessible within class 'C'… 9 …AsProtected.ts(20,3): error TS2445: Property 'a' is protected and only accessible within class 'C'… 10 …AsProtected.ts(21,3): error TS2445: Property 'b' is protected and only accessible within class 'C'… 11 …AsProtected.ts(22,3): error TS2445: Property 'b' is protected and only accessible within class 'C'… 12 …Protected.ts(23,3): error TS2445: Property 'foo' is protected and only accessible within class 'C'… 40 !!! error TS2445: Property 'x' is protected and only accessible within class 'C' and its subclasses. 43 !!! error TS2445: Property 'y' is protected and only accessible within class 'C' and its subclasses. [all …]
|
D | protectedMembers.errors.txt | 1 …ctedMembers.ts(40,4): error TS2445: Property 'x' is protected and only accessible within class 'C1… 2 …ctedMembers.ts(41,4): error TS2445: Property 'f' is protected and only accessible within class 'C1… 3 …tedMembers.ts(42,4): error TS2445: Property 'sx' is protected and only accessible within class 'C1… 4 …tedMembers.ts(43,4): error TS2445: Property 'sf' is protected and only accessible within class 'C1… 5 …ctedMembers.ts(46,4): error TS2445: Property 'x' is protected and only accessible within class 'C1… 6 …ctedMembers.ts(47,4): error TS2445: Property 'f' is protected and only accessible within class 'C2… 7 …tedMembers.ts(48,4): error TS2445: Property 'sx' is protected and only accessible within class 'C1… 8 …tedMembers.ts(49,4): error TS2445: Property 'sf' is protected and only accessible within class 'C2… 9 …tedMembers.ts(68,11): error TS2446: Property 'x' is protected and only accessible through an insta… 10 …tedMembers.ts(69,11): error TS2446: Property 'x' is protected and only accessible through an insta… [all …]
|
D | destructureComputedProperty.errors.txt | 1 …mputedProperty.ts(7,7): error TS2341: Property 'p' is private and only accessible within class 'C'. 2 …mputedProperty.ts(8,7): error TS2341: Property 'p' is private and only accessible within class 'C'. 3 …mputedProperty.ts(9,7): error TS2341: Property 'p' is private and only accessible within class 'C'. 4 …putedProperty.ts(10,7): error TS2341: Property 'p' is private and only accessible within class 'C'. 16 !!! error TS2341: Property 'p' is private and only accessible within class 'C'. 19 !!! error TS2341: Property 'p' is private and only accessible within class 'C'. 22 !!! error TS2341: Property 'p' is private and only accessible within class 'C'. 25 !!! error TS2341: Property 'p' is private and only accessible within class 'C'.
|
D | destructuringAssignment_private.errors.txt | 1 …nment_private.ts(6,10): error TS2341: Property 'x' is private and only accessible within class 'C'. 2 …gnment_private.ts(7,4): error TS2341: Property 'o' is private and only accessible within class 'C'. 3 …ment_private.ts(10,10): error TS2341: Property 'x' is private and only accessible within class 'C'. 4 …nment_private.ts(13,4): error TS2341: Property 'o' is private and only accessible within class 'C'. 15 !!! error TS2341: Property 'x' is private and only accessible within class 'C'. 18 !!! error TS2341: Property 'o' is private and only accessible within class 'C'. 23 !!! error TS2341: Property 'x' is private and only accessible within class 'C'. 28 !!! error TS2341: Property 'o' is private and only accessible within class 'C'.
|
D | errorSuperPropertyAccess.errors.txt | 12 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 13 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 15 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 17 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 20 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 21 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 23 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 25 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 26 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 27 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … [all …]
|
D | protectedStaticClassPropertyAccessibleWithinSubclass.errors.txt | 1 …hinSubclass.ts(7,18): error TS2445: Property 'x' is protected and only accessible within class 'De… 2 …inSubclass.ts(16,18): error TS2445: Property 'x' is protected and only accessible within class 'De… 3 …inSubclass.ts(25,18): error TS2445: Property 'x' is protected and only accessible within class 'De… 4 …hinSubclass.ts(40,6): error TS2445: Property 'x' is protected and only accessible within class 'Ba… 5 …inSubclass.ts(41,10): error TS2445: Property 'x' is protected and only accessible within class 'Ba… 6 …inSubclass.ts(42,10): error TS2445: Property 'x' is protected and only accessible within class 'Ba… 7 …inSubclass.ts(43,10): error TS2445: Property 'x' is protected and only accessible within class 'De… 19 !!! error TS2445: Property 'x' is protected and only accessible within class 'Derived3' and its sub… 30 !!! error TS2445: Property 'x' is protected and only accessible within class 'Derived3' and its sub… 41 !!! error TS2445: Property 'x' is protected and only accessible within class 'Derived3' and its sub… [all …]
|
D | superPropertyAccess.errors.txt | 3 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 4 …pertyAccess.ts(23,15): error TS2341: Property 'p1' is private and only accessible within class 'My… 5 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 6 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 7 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 8 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 38 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… 42 !!! error TS2341: Property 'p1' is private and only accessible within class 'MyBase'. 46 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… 50 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… [all …]
|
D | classConstructorAccessibility.errors.txt | 1 …y.ts(14,9): error TS2673: Constructor of class 'D' is private and only accessible within the class… 2 …ts(15,9): error TS2674: Constructor of class 'E' is protected and only accessible within the class… 3 …(31,13): error TS2673: Constructor of class 'D<T>' is private and only accessible within the class… 4 …2,13): error TS2674: Constructor of class 'E<T>' is protected and only accessible within the class… 23 !!! error TS2673: Constructor of class 'D' is private and only accessible within the class declarat… 26 !!! error TS2674: Constructor of class 'E' is protected and only accessible within the class declar… 44 !!! error TS2673: Constructor of class 'D<T>' is private and only accessible within the class decla… 47 !!! error TS2674: Constructor of class 'E<T>' is protected and only accessible within the class dec…
|
D | constructorParameterProperties.errors.txt | 1 …terProperties.ts(8,12): error TS2341: Property 'x' is private and only accessible within class 'C'. 2 …rProperties.ts(9,12): error TS2445: Property 'z' is protected and only accessible within class 'C'… 3 …erProperties.ts(18,12): error TS2341: Property 'x' is private and only accessible within class 'D<… 5 …Properties.ts(20,12): error TS2445: Property 'z' is protected and only accessible within class 'D<… 18 !!! error TS2341: Property 'x' is private and only accessible within class 'C'. 21 !!! error TS2445: Property 'z' is protected and only accessible within class 'C' and its subclasses. 32 !!! error TS2341: Property 'x' is private and only accessible within class 'D<T>'. 38 !!! error TS2445: Property 'z' is protected and only accessible within class 'D<T>' and its subclas…
|
D | superAccess.errors.txt | 2 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 3 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 15 … Expected => Error: Only public instance methods of the base class are accessible via the 'super' … 18 … Expected => Error: Only public instance methods of the base class are accessible via the 'super' … 20 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… 21 … Expected => Error: Only public instance methods of the base class are accessible via the 'super' … 23 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super…
|
D | protectedInstanceMemberAccessibility.errors.txt | 2 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 5 …essibility.ts(22,20): error TS2446: Property 'x' is protected and only accessible through an insta… 6 …essibility.ts(23,20): error TS2446: Property 'f' is protected and only accessible through an insta… 10 …essibility.ts(34,20): error TS2446: Property 'x' is protected and only accessible through an insta… 11 …essibility.ts(35,20): error TS2446: Property 'f' is protected and only accessible through an insta… 13 …essibility.ts(37,20): error TS2445: Property 'z' is protected and only accessible within class 'C'… 36 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… 48 !!! error TS2446: Property 'x' is protected and only accessible through an instance of class 'B'. 51 !!! error TS2446: Property 'f' is protected and only accessible through an instance of class 'B'. 70 !!! error TS2446: Property 'x' is protected and only accessible through an instance of class 'B'. [all …]
|
D | privateVisibility.errors.txt | 1 …ibility.ts(9,3): error TS2341: Property 'privMeth' is private and only accessible within class 'Fo… 2 …bility.ts(10,3): error TS2341: Property 'privProp' is private and only accessible within class 'Fo… 3 …Visibility.ts(24,3): error TS2341: Property 'priv' is private and only accessible within class 'C'. 17 !!! error TS2341: Property 'privMeth' is private and only accessible within class 'Foo'. 20 !!! error TS2341: Property 'privProp' is private and only accessible within class 'Foo'. 36 !!! error TS2341: Property 'priv' is private and only accessible within class 'C'.
|
D | memberFunctionsWithPrivateOverloads.errors.txt | 1 …eOverloads.ts(43,11): error TS2341: Property 'foo' is private and only accessible within class 'C'. 2 …eOverloads.ts(46,12): error TS2341: Property 'foo' is private and only accessible within class 'D<… 3 …eOverloads.ts(48,12): error TS2341: Property 'foo' is private and only accessible within class 'C'. 4 …eOverloads.ts(49,12): error TS2341: Property 'bar' is private and only accessible within class 'D<… 52 !!! error TS2341: Property 'foo' is private and only accessible within class 'C'. 57 !!! error TS2341: Property 'foo' is private and only accessible within class 'D<T>'. 61 !!! error TS2341: Property 'foo' is private and only accessible within class 'C'. 64 !!! error TS2341: Property 'bar' is private and only accessible within class 'D<T>'.
|
D | classConstructorAccessibility2.errors.txt | 2 …34,28): error TS2673: Constructor of class 'BaseC' is private and only accessible within the class… 3 …35,35): error TS2673: Constructor of class 'BaseC' is private and only accessible within the class… 4 …,10): error TS2674: Constructor of class 'BaseB' is protected and only accessible within the class… 5 …40,10): error TS2673: Constructor of class 'BaseC' is private and only accessible within the class… 46 !!! error TS2673: Constructor of class 'BaseC' is private and only accessible within the class decl… 49 !!! error TS2673: Constructor of class 'BaseC' is private and only accessible within the class decl… 55 !!! error TS2674: Constructor of class 'BaseB' is protected and only accessible within the class de… 58 !!! error TS2673: Constructor of class 'BaseC' is private and only accessible within the class decl…
|
D | superPropertyAccess1.errors.txt | 2 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 3 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 5 … error TS2340: Only public and protected methods of the base class are accessible via the 'super' … 25 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… 33 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super… 42 !!! error TS2340: Only public and protected methods of the base class are accessible via the 'super…
|
D | derivedClassWithPrivateStaticShadowingPublicStatic.errors.txt | 7 …PublicStatic.ts(24,18): error TS2341: Property 'x' is private and only accessible within class 'De… 8 …ublicStatic.ts(27,18): error TS2341: Property 'fn' is private and only accessible within class 'De… 9 …PublicStatic.ts(32,18): error TS2341: Property 'a' is private and only accessible within class 'De… 10 …gPublicStatic.ts(33,9): error TS2341: Property 'a' is private and only accessible within class 'De… 50 !!! error TS2341: Property 'x' is private and only accessible within class 'Derived'. 55 !!! error TS2341: Property 'fn' is private and only accessible within class 'Derived'. 62 !!! error TS2341: Property 'a' is private and only accessible within class 'Derived'. 65 !!! error TS2341: Property 'a' is private and only accessible within class 'Derived'.
|
D | privateStaticMemberAccessibility.errors.txt | 1 …cessibility.ts(6,23): error TS2341: Property 'foo' is private and only accessible within class 'Ba… 2 …cessibility.ts(7,23): error TS2341: Property 'foo' is private and only accessible within class 'Ba… 13 !!! error TS2341: Property 'foo' is private and only accessible within class 'Base'. 16 !!! error TS2341: Property 'foo' is private and only accessible within class 'Base'.
|
D | mixinAccessModifiers.errors.txt | 7 …ssModifiers.ts(50,4): error TS2445: Property 'p' is protected and only accessible within class 'Pr… 14 …ssModifiers.ts(84,6): error TS2445: Property 'p' is protected and only accessible within class 'C4… 15 …ssModifiers.ts(89,6): error TS2445: Property 's' is protected and only accessible within class 'ty… 16 …ssModifiers.ts(97,6): error TS2445: Property 'p' is protected and only accessible within class 'C4… 17 …sModifiers.ts(102,6): error TS2445: Property 's' is protected and only accessible within class 'ty… 18 ….ts(119,4): error TS2341: Property 'privateMethod' is private and only accessible within class 'Pr… 19 …120,4): error TS2445: Property 'protectedMethod' is protected and only accessible within class 'Pr… 24 ….ts(129,4): error TS2341: Property 'privateMethod' is private and only accessible within class 'Pr… 25 …130,4): error TS2445: Property 'protectedMethod' is protected and only accessible within class 'Pr… 89 !!! error TS2445: Property 'p' is protected and only accessible within class 'Protected & Protected… [all …]
|