Fixes #3060 and adds error checking for invalid else branches in object variants (#9957)

* Fix semRecordCase

* Fix ftpclient.nim

* Check for ordinal type

* Check tyRange for exhaustiveness
This commit is contained in:
Andreas Rumpf 2018-12-19 10:03:22 +01:00 • committed by GitHub
commit 72500420d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 18 deletions

View file

@ -81,7 +81,6 @@ type
oneSecond: BiggestInt # Bytes transferred in one second.
lastProgressReport: float # Time
toStore: string # Data left to upload (Only used with async)
else: nil
FtpClientObj* = FtpBaseObj[Socket]
FtpClient* = ref FtpClientObj