nicolas
nicolas

Reputation: 9805

package object and scala worksheet

I have a strange behaviour in the eclipse IDE.

I reproduced it with the documentation on package objects

Now :

What am I doing wrong that prevents the worksheet to execute properly ?

edit

I think the package object idea is not available in worksheet.

As a separate point, worksheet might mandate some file organisation on disk that scala files themselves escape (aka, having a file in gardening/fruit/fruit.scala and package gardening only in the file). Not sure..

Upvotes: 1

Views: 2423

Answers (1)

cashmere
cashmere

Reputation: 2831

You need to compile .scala files before you can import them into worksheet

Upvotes: 4

Related Questions