Skip to content

Commit 572adfa

Browse files
author
Gilles Dubochet
committed
Fixed issue scala#451 by updating structural method ...
Fixed issue scala#451 by updating structural method dispatch logic to work with new arrays.
1 parent acd28e3 commit 572adfa

File tree

2 files changed

+139
-174
lines changed

2 files changed

+139
-174
lines changed

src/compiler/scala/tools/nsc/symtab/Definitions.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ trait Definitions {
125125
def SeqFactory = getMember(ScalaRunTimeModule, nme.Seq)
126126
def checkDefinedMethod = getMember(ScalaRunTimeModule, "checkDefined")
127127
def isArrayMethod = getMember(ScalaRunTimeModule, "isArray")
128+
def arrayApplyMethod = getMember(ScalaRunTimeModule, "array_apply")
129+
def arrayUpdateMethod = getMember(ScalaRunTimeModule, "array_update")
130+
def arrayLengthMethod = getMember(ScalaRunTimeModule, "array_length")
128131

129132
// classes with special meanings
130133
lazy val NotNullClass = getClass("scala.NotNull")
@@ -185,6 +188,7 @@ trait Definitions {
185188
lazy val ArrayClass = getClass("scala.Array")
186189
def Array_apply = getMember(ArrayClass, nme.apply)
187190
def Array_update = getMember(ArrayClass, nme.update)
191+
def Array_length = getMember(ArrayClass, nme.length)
188192
lazy val ArrayModule = getModule("scala.Array")
189193
def ArrayModule_apply = getMember(ArrayModule, nme.apply)
190194

0 commit comments

Comments
 (0)