// RUN: %dafny "%s" > "%t" // RUN: %diff "%s.expect" "%t" // calling fields should not make a resolution error: class Ref { var val: A; } method Nope() { var f := new Ref bool>; assert f.val(0); } class FnRef { var fn: A -> B; } method Nope2() { var f := new FnRef; assert f.fn(0); }