We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50674cb commit 852c578Copy full SHA for 852c578
test/classes.coffee
@@ -1808,3 +1808,28 @@ test 'Bound method of immediately instantiated class with expression base class
1808
1809
{derivedBound} = a
1810
eq derivedBound(), 3
1811
+
1812
+test "#4591: super.x.y, super['x'].y", ->
1813
+ class A
1814
+ x:
1815
+ y: 1
1816
+ z: -> 2
1817
1818
+ class B extends A
1819
+ constructor: ->
1820
+ super()
1821
1822
+ @w = super.x.y
1823
+ @v = super['x'].y
1824
+ @u = super.x['y']
1825
+ @t = super.x.z()
1826
+ @s = super['x'].z()
1827
+ @r = super.x['z']()
1828
1829
+ b = new B
1830
+ eq 1, b.w
1831
+ eq 1, b.v
1832
+ eq 1, b.u
1833
+ eq 2, b.t
1834
+ eq 2, b.s
1835
+ eq 2, b.r
0 commit comments