the type of secondTrip should be Trips.trainJourney, not Trips.firstTrip.

trainJourney is a proper type, whereas firstTrip is a variable
This commit is contained in:
Michael Rashkovsky 2019-11-15 22:53:36 -05:00 committed by GitHub
parent 50f77dd0d0
commit 74387bab7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ let maxPassengers = firstTrip.capacity;
/* If you define the record type in a different file, you have to reference the
filename, if trainJourney was in a file called Trips.re */
let secondTrip: Trips.firstTrip = {
let secondTrip: Trips.trainJourney = {
destination: "Paris",
capacity: 50,
averageSpeed: 150.0,