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:
parent
c20d6fb506
commit
2a2532dac6
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
object Test {
|
||||
class MyClass extends scala.util.logging.Logged { }
|
||||
val x = new MyClass with scala.util.logging.ConsoleLogger
|
||||
}
|
Loading…
Reference in New Issue