This page is no longer maintained — Please continue to the home page at

repl completion inside a def

No replies
Razvan Cojocaru 3
Joined: 2010-07-28,
User offline. Last seen 42 years 45 weeks ago.

Why can’t it offer the options for a seemingly trivial line:



Welcome to Scala version (Java HotSpot(TM) 64-Bit Server VM, Java 1.


Type in expressions to have them evaluated.

Type :help for more information.


scala> "s".<TAB>

+                     asInstanceOf          charAt

codePointAt           codePointBefore       codePointCount

compareTo             compareToIgnoreCase   concat

contains              contentEquals         endsWith

equalsIgnoreCase      getBytes              getChars

indexOf               intern                isEmpty

isInstanceOf          lastIndexOf           length

matches               offsetByCodePoints    regionMatches

replace               replaceAll            replaceFirst

split                 startsWith            subSequence

substring             toCharArray           toLowerCase

toString              toUpperCase           trim


scala> def x(s:String) = s.<TAB>

-          Nothing here…



Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland