I want to save a notebook as a Wolfram language package. When I use the menu command
File>Save As and choose ".wl" then the resulting package contains precedence issues which were not there in the original notebook file.
For example, a code which is correctly interpreted as
(a^2).b in the notebook becomes
(a^2.)*b in the package.
Example: A notebook which calculates
File>Save As and choose Wolfram language package.
Resulting package looks as follows:
(* ::Package:: *) a^2.b
This package evaluates
(a^2.)*b instead of
Is there a possibility to save a notebook as a Wolfram language package preserving correct precedence?
Edit: Mathematica version used in the test:
$Version (* 12.0.0 for Mac OS X x86 (64-bit) (April 7, 2019) *)