Skip to content

Commit 925efa5

Browse files
committed
1 parent 61ff988 commit 925efa5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

FrontEndAst/CheckLongReferences.fs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,14 @@ let rec private checkType (r:AstRoot) (tasPositions:Map<ReferenceToType,int>) (p
290290
//the visible parameters of a type are this type parameters if type has parameters or the
291291
//next parent with parameters
292292
let visibleParameters =
293-
match parents@[t] |> List.rev |> List.filter(fun x -> not x.acnParameters.IsEmpty) with
294-
| [] -> []
295-
| p1::_ -> p1.acnParameters |> List.map(fun p -> (p1.id, p))
293+
// match parents@[t] |> List.rev |> List.filter(fun x -> not x.acnParameters.IsEmpty) with
294+
// | [] -> []
295+
// | p1::_ -> p1.acnParameters |> List.map(fun p -> (p1.id, p))
296+
(parents@[t])
297+
|> List.rev
298+
|> List.collect (fun p -> p.acnParameters |> List.map (fun prm -> (p.id, prm)))
299+
|> List.distinctBy (fun (_,prm) -> prm.name)
300+
296301
match t.Kind with
297302
| Integer _
298303
| Real _

asn1scc/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ let printVersion () =
124124
//let fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
125125
//let version = fvi.FileVersion;
126126

127-
let version = "4.6.0.8"
127+
let version = "4.6.0.9"
128128
printfn "asn1scc version %s\n" version
129129
()
130130

0 commit comments

Comments
 (0)