Skip to content

Commit ce0ddee

Browse files
authored
Make lazy not a protected class (#275)
Otherwise people can't extend `sjsonnet.Val.Builtin2` since they can't implement ``` def evalRhs( arg1: sjsonnet.Lazy, arg2: sjsonnet.Lazy, ev: sjsonnet.EvalScope, pos: sjsonnet.Position): sjsonnet.Val = { ``` See [example](https://github.com/databricks-eng/universe/pull/1015923)
1 parent 76eec48 commit ce0ddee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sjsonnet/src/sjsonnet/Val.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import scala.reflect.ClassTag
1515
* evaluated dictionary values, array contents, or function parameters
1616
* are all wrapped in [[Lazy]] and only truly evaluated on-demand
1717
*/
18-
protected abstract class Lazy {
18+
abstract class Lazy {
1919
protected[this] var cached: Val = null
2020
def compute(): Val
2121
final def force: Val = {

0 commit comments

Comments
 (0)