Fix and test for #1648

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@16948 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
washburn 2009-01-20 14:24:02 +00:00
parent c20d6fb506
commit 2a2532dac6
2 changed files with 6 additions and 2 deletions

View File

@ -18,11 +18,11 @@ package scala.util.logging
* @author Burak Emir
* @version 1.0
*/
trait ConsoleLogger {
trait ConsoleLogger extends Logged {
/** logs argument to Console using <code>Console.println</code>
*
* @param msg ...
*/
def log(msg: String): Unit = Console.println(msg)
override def log(msg: String): Unit = Console.println(msg)
}

View File

@ -0,0 +1,4 @@
object Test {
class MyClass extends scala.util.logging.Logged { }
val x = new MyClass with scala.util.logging.ConsoleLogger
}