diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-05-09 21:33:19 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-05-09 21:33:19 +0200 |
commit | 37851350754403323b26c0c32417cbecc0c44584 (patch) | |
tree | f7269a8eb348a1d450117e7d71ede6afcb2aeff3 /src/dotty/tools/dotc/typer/Typer.scala | |
parent | a1790ebc08d8498f86440cd0534343b11319fc6d (diff) | |
download | dotty-37851350754403323b26c0c32417cbecc0c44584.tar.gz dotty-37851350754403323b26c0c32417cbecc0c44584.tar.bz2 dotty-37851350754403323b26c0c32417cbecc0c44584.zip |
rename isSourceMethod to isRealMethod, the previous name was inaccurate
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 191a13ad0..566e8289a 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -708,7 +708,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit ctx.error("return outside method definition", tree.pos) (EmptyTree, WildcardType) } - else if (owner != cx.outer.owner && owner.isSourceMethod) { + else if (owner != cx.outer.owner && owner.isRealMethod) { if (owner.isCompleted) { val from = Ident(TermRef(NoPrefix, owner.asTerm)) val proto = returnProto(owner, cx.scope) |