summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-objects-bugs/pr4766_ok.ml
blob: c5809c1d931af96bbcd5bdf9d99fa89b4563b68e (plain)
1
2
3
4
5
6
7
8
9
10
class virtual ['a] c = 
object (s : 'a) 
  method virtual m : 'b 
end

let o = 
    object (s :'a)
      inherit ['a] c
      method m = 42
    end