scala - Intellij not understanding a String method -


the following not compiling in intellij:

val leader = "_" * 8 val nameplaceholder = " " * 12 

enter image description here

naturally code fine in repl:

scala>     val leader = "_" * 8 leader: string = ________  scala>     val nameplaceholder = " " * 12 nameplaceholder: string = "            " 

providing "assistance" intellij did not have effect:

e.g.

import stringlike._ 

or

val leader = "_".*(8) 

any ideas how mollify ij ? on 2016.2 ultimate


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -