From 7537cfcfa5ccf47d400e2841b9bc4ff2cac1eada Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 12 Sep 2016 15:55:04 +0200 Subject: Document deviations from inline SIP --- src/dotty/tools/dotc/typer/Inliner.scala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dotty/tools/dotc/typer/Inliner.scala b/src/dotty/tools/dotc/typer/Inliner.scala index acf506327..c11001363 100644 --- a/src/dotty/tools/dotc/typer/Inliner.scala +++ b/src/dotty/tools/dotc/typer/Inliner.scala @@ -25,6 +25,13 @@ import util.{Property, SourceFile, NoSource} import collection.mutable import transform.TypeUtils._ +/** Todo wrt inline SIP: + * + * 1. According to Inline SIP, by-name parameters are not hoisted out, but we currently + * do hoist them. + * + * 2. Inline call-by-name parameters are currently ignored. Not sure what the rules should be. + */ object Inliner { import tpd._ -- cgit v1.2.3