summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-objects-bugs/pr4766_ok.ml
blob: 726cc866699767dbbb59d319bfda9ff2b0627565 (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