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 5d5d108 commit 0a0fa3eCopy full SHA for 0a0fa3e
compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala
@@ -377,7 +377,7 @@ class SyntheticMembers(thisPhase: DenotTransformer) {
377
* O is O.type.
378
*/
379
def ordinalBody(cls: Symbol, param: Tree)(implicit ctx: Context): Tree =
380
- if (cls.is(Enum)) param.select(nme.ordinal)
+ if (cls.is(Enum)) Apply(param.select(nme.ordinal), Nil)
381
else {
382
val cases =
383
for ((child, idx) <- cls.children.zipWithIndex) yield {
0 commit comments