Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Solcore/Frontend/TypeInference/SccAnalysis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ instance Decl (TopDecl Name) where
decl (TMutualDef ds) = decl ds
decl (TDataDef d) = decl d
decl (TSym t) = decl t
decl (TClassDef c) = decl c
decl _ = []


instance Decl (ContractDecl Name) where
decl (CDataDecl dt) = decl dt
decl (CFieldDecl fd) = decl fd
Expand All @@ -139,6 +139,10 @@ instance Decl (ContractDecl Name) where
= concatMap decl ds
decl (CConstrDecl cd) = []

instance Decl (Class Name) where
decl (Class _ _ n _ _ sigs)
= n : decl sigs

-- getting the mentioned names in a declaration

class Names a where
Expand Down
2 changes: 1 addition & 1 deletion std/std.solc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function ge(x:a, y:a) -> bool {

forall a. a:Ord =>
function lt(x:a, y:a) -> bool {
return gt(y,x);
return Ord.gt(y,x);
}

// --- Arithmetic ---
Expand Down