Issue1632.agda 175 B

123456789101112131415
  1. {-# OPTIONS --copatterns #-}
  2. open import Common.Prelude
  3. record R : Set where
  4. field
  5. f1 : Nat
  6. f2 : String
  7. r : R
  8. R.f1 r = 5
  9. R.f2 r = "yes"
  10. main = putStrLn (R.f2 r)