Skip to content

Instantly share code, notes, and snippets.

View stevej's full-sized avatar

Steve Jenson stevej

View GitHub Profile
type Bar = String // <-- compiler error
class Foo {
def get: Bar = "hello"
}
class Baz {
val foo = new FooImpl()
def bar: Bar = foo.get() // <-- compiler error if type Bar is defined inside of Foo
}
@stevej
stevej / emacs-ant-compile.el
Created September 4, 2008 18:15
compile within emacs using ant
(defvar ant-command-history nil
"Ant command history variable")
(defun ant(&optional args)
"Runs ant in the current project. Starting at the directory
where the file being visited resides, a search is made for
build.xml recursively. A maven command is made from the first
directory where the build.xml file is found is then displayed in
the minibuffer. The command can be edited as needed and then
executed. Errors are navigate to as in any other compile mode"